<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<%@include file="../basic.jsp"%>
<link rel="stylesheet" href="<%=CSS_PATH%>chosen.css" />
<title>轮询图设置</title>
</head>

<body class="navbar-fixed breadcrumbs-fixed">
	<%@include file="../header.jsp"%>

	<div class="main-container" id="main-container">

		<div class="main-container-inner">
			<a class="menu-toggler" id="menu-toggler" href="#"> <span
				class="menu-text"></span>
			</a>
			<%@include file="../sliderbar.jsp"%>

			<div class="main-content">
				<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">

					<ul class="breadcrumb">
						<li><i class="icon-home home-icon"></i></li>
						<li class="active" id="nav_title">首页轮询图片管理</li>
					</ul>
					<!-- .breadcrumb -->

				</div>

				<div class="page-content">
					<div class="page-header">
						<h1 id="title"></h1>
					</div>
					<!-- /.page-header -->

					<div class="row">
						<div class="col-xs-12">
							<!-- PAGE CONTENT BEGINS -->

							<form id="pollpicForm" class="form-horizontal" target="commonFrame" role="form" enctype="multipart/form-data" action="/polling/merge.do" method="post">
								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right"
										for="form-field-1"> 名称 </label>

									<div class="col-sm-9">
										<input type="hidden" name="id" id="pid"/>
										<input type="text" id="ptitle" name="title" placeholder="标题"
											class="col-xs-10 col-sm-5" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right"
										for="form-field-1"> 描述 </label>

									<div class="col-sm-9">
										<input type="text" id="pdes" name="description"
											placeholder="描述" class="col-xs-10 col-sm-5" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right"
										for="form-field-1"> 图片（730*260） </label>

									<div class="col-sm-9">
										<input type="file" name="imgUrl" id="input-img" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right"
										for="form-field-1"> 跳转地址 </label>

									<div class="col-sm-9">
										<input type="text" id="href" name="href" placeholder="跳转地址"
											class="col-xs-10 col-sm-5" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-1 control-label no-padding-right"
										for="form-field-3"> 链接打开方式 </label>

									<div class="col-sm-9">
										<select class="form-control chosen-select" id="target"
											name="target" data-placeholder="Choose a Country...">
											<option value="_blank">新窗口打开</option>
											<option value="_top">本窗口打开</option>
										</select>
									</div>
								</div>

								<div class="form-group" style="display: none" id="success">
									<label class="col-sm-2 control-label no-padding-right"
										for="form-field-3"></label>
									<div class="col-sm-6 alert alert-success">
										<button type="button" class="close" data-dismiss="alert">
											<i class="icon-remove"></i>
										</button>
										<span id="successMsg"></span>
									</div>
								</div>

								<div class="form-group" style="display: none"
									id=StartUpListener.LANGUAGE.getProperty("error.unkonw")>
									<label class="col-sm-2 control-label no-padding-right"
										for="form-field-3"></label>
									<div class="col-sm-6 alert alert-danger">
										<button type="button" class="close" data-dismiss="alert">
											<i class="icon-remove"></i>
										</button>
										<span id="errMsg"></span>
									</div>
								</div>



								<div class="clearfix form-actions">
									<div class="col-md-offset-6 col-md-9">
										<a class="btn btn-info " id="saveBtn"> <i class="icon-ok"></i>
											保存
										</a>
									</div>
								</div>
							</form>
						</div>
						<!-- /.col -->
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
			<!-- /.main-content -->
			<!-- /.main-content -->
		</div>
		<!-- /.main-container-inner -->
		<iframe id='commonFrame' name='commonFrame' style='display: none;'></iframe>

		<a href="#" id="btn-scroll-up"
			class="btn-scroll-up btn btn-sm btn-inverse"> <i
			class="icon-double-angle-up icon-only bigger-110"></i>
		</a>
	</div>
	<!-- /.main-container -->
	<script src="<%=JS_PATH%>chosen.jquery.min.js"></script>
	<script type="text/javascript">
		$('#input-img').ace_file_input({
			no_file : 'No File ...',
			btn_choose : 'Choose',
			btn_change : 'Change',
			droppable : false,
			onchange : null,
			thumbnail : false
		});
	</script>
	<script type="text/javascript" src="<%=JS_PATH%>pollpic/pollpic.js"></script>
</body>
</html>
